﻿using System.Collections.Generic;
using System.IO;
using System.Text;

namespace SpellChecker.Test
{
    public class DateiLeser
    {
        public Dictionary<string,string> Load(string Path)
        {
            var WordList = new Dictionary<string, string>();
            var FileContent = File.ReadAllLines(Path, Encoding.Default);

            foreach (var Line in FileContent)
            {
                WordList.Add(Line.ToLower(),"");
            }

            return WordList;
        }
    }
}